/* 主样式文件 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--deepseek-text);
    background-color: #f8fafc;
    margin: 0;
    min-height: 100vh;
}

.bi::before {
    display: inline-block;
    content: "";
    vertical-align: -.125em;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

.bi-house::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'><path d='M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z'/></svg>");
}

.bi-chat::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'><path d='M5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/><path d='m2.165 15.803.02-.004c1.83-.363 2.948-.842 3.468-1.105A9.06 9.06 0 0 0 8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6a10.437 10.437 0 0 1-.524 2.318l-.003.011a10.722 10.722 0 0 1-.244.637c-.079.186.074.394.273.362a21.673 21.673 0 0 0 .693-.125zm.8-3.108a1 1 0 0 0-.287-.801C1.618 10.83 1 9.468 1 8c0-3.192 3.004-6 7-6s7 2.808 7 6c0 3.193-3.004 6-7 6a8.06 8.06 0 0 1-2.088-.272 1 1 0 0 0-.711.074c-.387.196-1.24.57-2.634.893a10.97 10.97 0 0 0 .398-2z'/></svg>");
}

.bi-file-earmark::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'><path d='M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z'/></svg>");
}

.bi-book::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'><path d='M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z'/></svg>");
}

.bi-gear::before {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'><path d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z'/><path d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z'/></svg>");
}

/* 导航栏样式 - 现代化设计 */
.deepseek-header {
    grid-area: header;
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--deepseek-border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.deepseek-header-brand {
    display: flex;
    align-items: center;
}

.deepseek-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #3a6df0, #5d87ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.deepseek-logo i, .deepseek-logo svg {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.deepseek-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deepseek-search-bar {
    position: relative;
    margin-right: 1rem;
}

.deepseek-search-bar input {
    background-color: #f5f7fa;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    width: 240px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.deepseek-search-bar input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(58, 109, 240, 0.15);
    width: 300px;
}

.deepseek-search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ea9bd;
}

.deepseek-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: white;
    border-right: 1px solid var(--deepseek-border);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.deepseek-nav-section {
    margin-bottom: 1.5rem;
}

.deepseek-nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ea9bd;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.deepseek-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--deepseek-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.deepseek-nav-item i, .deepseek-nav-item svg {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.deepseek-nav-item:hover {
    background-color: rgba(58, 109, 240, 0.05);
    color: var(--deepseek-primary);
}

.deepseek-nav-item:hover i, .deepseek-nav-item:hover svg {
    color: var(--deepseek-primary);
}

.deepseek-nav-item.active {
    background-color: rgba(58, 109, 240, 0.08);
    color: var(--deepseek-primary);
    border-left-color: var(--deepseek-primary);
    font-weight: 600;
}

.deepseek-nav-item.active i, .deepseek-nav-item.active svg {
    color: var(--deepseek-primary);
}

.deepseek-nav-item .badge {
    margin-left: auto;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(58, 109, 240, 0.1);
    color: var(--deepseek-primary);
}

.deepseek-nav-collapse {
    margin-left: auto;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.deepseek-nav-item.collapsed .deepseek-nav-collapse {
    transform: rotate(-180deg);
}

.deepseek-nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.deepseek-nav-item.open + .deepseek-nav-dropdown {
    max-height: 500px;
}

.deepseek-nav-dropdown-item {
    display: block;
    padding: 8px 15px 8px 50px;
    color: var(--text-color-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s ease;
}

.deepseek-nav-dropdown-item:hover,
.deepseek-nav-dropdown-item.active {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.deepseek-nav-dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* 暗色模式下的子菜单项 */
body.dark-mode .deepseek-nav-dropdown-item {
    color: var(--text-color-secondary-dark);
}

body.dark-mode .deepseek-nav-dropdown-item:hover,
body.dark-mode .deepseek-nav-dropdown-item.active {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
}

.deepseek-main {
    margin-left: 260px;
    margin-top: 60px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    min-height: calc(100vh - 60px);
    background-color: #f8fafc;
}

.deepseek-header-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--deepseek-text);
    margin-right: 1rem;
}

.deepseek-header-mobile-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.deepseek-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
    .deepseek-header-mobile-toggle {
        display: flex;
    }
    
    .deepseek-sidebar {
        transform: translateX(-100%);
    }
    
    .deepseek-sidebar.show {
        transform: translateX(0);
    }
    
    .deepseek-main {
        margin-left: 0;
    }
    
    .deepseek-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* 内容区域 */
.welcome-section {
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

/* 聊天窗口样式 */
.chat-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.chat-input {
    display: flex;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.message {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
}

.message-user {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message-bot {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
}

/* 新的现代化聊天界面样式 */
/* ==================== 聊天布局 ==================== */
.chat-layout {
    display: flex;
    height: calc(100vh - 120px);
    position: relative;
    border-radius: var(--deepseek-border-radius-lg);
    box-shadow: var(--deepseek-shadow);
    background-color: var(--deepseek-card-bg);
    overflow: hidden;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid var(--deepseek-border);
}

.chat-info-panel {
    width: 280px;
    height: 100%;
    background-color: var(--deepseek-card-bg);
    border-left: 1px solid var(--deepseek-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.info-panel-collapsed .chat-info-panel {
    transform: translateX(100%);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

/* ==================== 聊天头部 ==================== */
.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--deepseek-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--deepseek-card-bg);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--deepseek-primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-status {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--deepseek-text-muted);
    margin-top: 4px;
}

.chat-status.online .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--deepseek-success);
    margin-right: 6px;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

/* ==================== 聊天消息区域 ==================== */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--deepseek-bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    color: var(--deepseek-text-muted);
    font-size: 0.85rem;
}

.chat-date-divider span {
    padding: 0 1rem;
    background-color: var(--deepseek-bg);
    position: relative;
    z-index: 1;
}

.chat-date-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--deepseek-border);
}

.message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.user-message-wrapper {
    align-self: flex-end;
}

.message {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--deepseek-shadow-sm);
    transition: all 0.2s ease;
    margin-bottom: 0;
    max-width: 100%;
}

.message-bot {
    background-color: var(--deepseek-card-bg);
    border: 1px solid var(--deepseek-border);
    border-top-left-radius: 4px;
    align-self: flex-start;
}

.message-user {
    background-color: var(--deepseek-primary);
    color: white;
    border-top-right-radius: 4px;
    align-self: flex-end;
}

.message-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.message-user .message-header {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.message-bot .message-avatar {
    background-color: var(--deepseek-primary-light);
    color: white;
    margin-right: 8px;
}

.message-user .message-avatar {
    background-color: white;
    color: var(--deepseek-primary);
    margin-left: 8px;
}

.message-info {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.message-sender {
    font-weight: 600;
}

.message-time {
    opacity: 0.7;
    font-size: 0.7rem;
}

.message-content {
    padding: 0.75rem 1rem;
    word-break: break-word;
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-user .message-content {
    color: white;
}

.message-actions {
    display: flex;
    padding: 0 0.5rem 0.25rem 0.5rem;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message:hover .message-actions {
    opacity: 1;
}

.btn-message-action {
    padding: 0.15rem 0.3rem;
    color: inherit;
    opacity: 0.7;
    font-size: 0.75rem;
}

.message-bot .btn-message-action {
    color: var(--deepseek-text-secondary);
}

.message-user .btn-message-action {
    color: white;
}

.btn-message-action:hover {
    opacity: 1;
}

/* 引用文档样式 */
.message-references {
    font-size: 0.85rem;
    border-top: 1px solid var(--deepseek-border-light);
    padding-top: 0.5rem;
}

.references-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--deepseek-text-secondary);
}

.reference-item {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.02);
}

.reference-item a {
    color: var(--deepseek-primary);
    text-decoration: none;
}

.reference-item a:hover {
    text-decoration: underline;
}

/* 打字指示器 */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 1px;
    background-color: var(--deepseek-primary);
    border-radius: 50%;
    display: inline-block;
    opacity: 0.6;
    animation: typing-animation 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ==================== 聊天输入区域 ==================== */
.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--deepseek-border);
    background-color: var(--deepseek-card-bg);
}

.chat-input-toolbar {
    display: flex;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.btn-tool {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deepseek-text-secondary);
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
}

.btn-tool:hover {
    background-color: var(--deepseek-border-light);
    color: var(--deepseek-primary);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.chat-input-wrapper textarea {
    border-radius: 20px;
    resize: none;
    padding: 0.5rem 1rem;
    max-height: 120px;
    border-color: var(--deepseek-border);
}

.chat-input-wrapper textarea:focus {
    box-shadow: 0 0 0 3px rgba(58, 109, 240, 0.1);
}

.btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chat-input-footer {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.suggestion-item {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background-color: var(--deepseek-border-light);
    color: var(--deepseek-text);
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.suggestion-item:hover {
    background-color: var(--deepseek-primary-light);
    color: white;
}

/* ==================== 信息面板 ==================== */
.info-panel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--deepseek-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-panel-section {
    padding: 1rem;
    border-bottom: 1px solid var(--deepseek-border);
}

.info-panel-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--deepseek-text-secondary);
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: var(--deepseek-border-light);
}

.info-label {
    font-size: 0.85rem;
    color: var(--deepseek-text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--deepseek-primary);
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--deepseek-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-item:hover {
    background-color: var(--deepseek-border-light);
}

.resource-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 深色模式适配 ==================== */
.dark-mode .message-bot {
    background-color: var(--deepseek-card-bg);
    border-color: var(--deepseek-border);
}

.dark-mode .message-user {
    background-color: var(--deepseek-primary);
}

.dark-mode .chat-messages {
    background-color: var(--deepseek-bg);
}

.dark-mode .chat-date-divider span {
    background-color: var(--deepseek-bg);
}

.dark-mode .chat-input-container,
.dark-mode .chat-header {
    background-color: var(--deepseek-card-bg);
}

.dark-mode .chat-input-wrapper textarea {
    background-color: var(--deepseek-gray-100);
    border-color: var(--deepseek-border);
    color: var(--deepseek-text);
}

.dark-mode .btn-tool:hover {
    background-color: var(--deepseek-gray-200);
}

.dark-mode .suggestion-item {
    background-color: var(--deepseek-gray-200);
    color: var(--deepseek-text);
}

.dark-mode .suggestion-item:hover {
    background-color: var(--deepseek-primary);
    color: white;
}

.dark-mode .reference-item {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 991.98px) {
    .chat-layout {
        flex-direction: column;
    }
    
    .chat-main {
        height: auto;
        flex: 1;
        border-right: none;
        border-bottom: 1px solid var(--deepseek-border);
    }
    
    .chat-info-panel {
        width: 100%;
        height: 300px;
        border-left: none;
        border-top: 1px solid var(--deepseek-border);
    }
    
    .info-panel-collapsed .chat-info-panel {
        transform: translateY(100%);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .message-wrapper {
        max-width: 95%;
    }
    
    .chat-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .message-header {
        padding: 0.25rem 0.5rem;
    }
    
    .message-content {
        padding: 0.5rem 0.75rem;
    }
    
    .chat-input-footer {
        flex-direction: column;
    }
    
    .chat-suggestions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

/* 文件库、知识库样式 */
.card-library {
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.card-library:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 系统管理样式 */
.admin-section {
    margin-bottom: 2rem;
}

/* 加载动画 */
.spinner {
    width: 3rem;
    height: 3rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }
}

/* DeepSeek风格的系统管理界面 */
.deepseek-admin {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas: 
        "header header"
        "sidebar main";
    height: 100vh;
    overflow: hidden;
}

/* 头部导航样式 */
.deepseek-header {
    background-color: var(--deepseek-card-bg);
    border-bottom: 1px solid var(--deepseek-border);
    height: var(--deepseek-header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.deepseek-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deepseek-primary);
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.deepseek-logo i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.deepseek-sidebar {
    position: fixed;
    top: var(--deepseek-header-height);
    left: 0;
    bottom: 0;
    width: var(--deepseek-sidebar-width);
    background-color: var(--deepseek-card-bg);
    border-right: 1px solid var(--deepseek-border);
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 99;
    padding: 1rem 0;
}

.deepseek-main {
    margin-left: var(--deepseek-sidebar-width);
    margin-top: var(--deepseek-header-height);
    padding: 1.5rem;
    transition: all 0.3s;
}

.deepseek-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--deepseek-text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.deepseek-nav-item:hover {
    background-color: rgba(58, 109, 240, 0.05);
    color: var(--deepseek-primary);
}

.deepseek-nav-item.active {
    background-color: rgba(58, 109, 240, 0.1);
    color: var(--deepseek-primary);
    border-left-color: var(--deepseek-primary);
}

.deepseek-nav-item i {
    margin-right: 1rem;
    font-size: 1.1rem;
}

.deepseek-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.deepseek-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.deepseek-card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--deepseek-border);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deepseek-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--deepseek-text);
}

.deepseek-card-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--deepseek-text-secondary);
    font-weight: normal;
}

.deepseek-card-body {
    padding: 1.75rem;
}

.deepseek-card-footer {
    padding: 1rem 1.75rem;
    background-color: rgba(0, 0, 0, 0.01);
    border-top: 1px solid var(--deepseek-border);
}

/* 特色卡片变体 */
.deepseek-card-featured {
    border-top: 4px solid var(--deepseek-primary);
}

.deepseek-card-success {
    border-top: 4px solid var(--deepseek-success);
}

.deepseek-card-warning {
    border-top: 4px solid var(--deepseek-warning);
}

.deepseek-card-danger {
    border-top: 4px solid var(--deepseek-danger);
}

/* 卡片布局 */
.deepseek-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 统计卡片 */
.deepseek-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
}

.deepseek-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.deepseek-stat-card .icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deepseek-primary);
    opacity: 0.12;
}

.deepseek-stat-card .label {
    font-size: 0.95rem;
    color: var(--deepseek-text-secondary);
    margin-bottom: 0.5rem;
}

.deepseek-stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--deepseek-text);
}

.deepseek-stat-card .change {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.deepseek-stat-card .change.positive {
    color: var(--deepseek-success);
}

.deepseek-stat-card .change.negative {
    color: var(--deepseek-danger);
}

.deepseek-stat-card .change i,
.deepseek-stat-card .change svg {
    margin-right: 0.25rem;
}

/* 媒体卡片 */
.deepseek-media-card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.deepseek-media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.deepseek-media-card .media {
    flex: 0 0 160px;
    background-size: cover;
    background-position: center;
}

.deepseek-media-card .content {
    flex: 1;
    padding: 1.5rem;
}

.deepseek-media-card .title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.deepseek-media-card .text {
    color: var(--deepseek-text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 文件卡片组件 */
.deepseek-file-card {
    display: flex;
    padding: 1rem;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--deepseek-border);
    transition: all 0.2s ease;
    align-items: center;
}

.deepseek-file-card:hover {
    background-color: rgba(58, 109, 240, 0.03);
    border-color: var(--deepseek-primary);
}

.deepseek-file-card .icon {
    width: 42px;
    height: 42px;
    background-color: rgba(58, 109, 240, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deepseek-primary);
    margin-right: 1rem;
    font-size: 1.25rem;
}

.deepseek-file-card .content {
    flex: 1;
}

.deepseek-file-card .name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.deepseek-file-card .info {
    font-size: 0.875rem;
    color: var(--deepseek-text-secondary);
}

.deepseek-file-card .actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮组 */
.deepseek-btn-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.deepseek-btn-group .deepseek-btn {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    flex: 1;
}

.deepseek-btn-group .deepseek-btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.deepseek-btn-group .deepseek-btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 仪表盘样式 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.1;
    color: var(--deepseek-primary);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--deepseek-text-secondary);
    font-size: 0.875rem;
}

.stat-card .stat-change {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.stat-card .stat-change.positive {
    background-color: rgba(42, 198, 112, 0.1);
    color: var(--deepseek-success);
}

.stat-card .stat-change.negative {
    background-color: rgba(242, 100, 100, 0.1);
    color: var(--deepseek-danger);
}

.stat-card .stat-change i,
.stat-card .stat-change svg {
    margin-right: 0.25rem;
}

/* 页面加载动画 */
.deepseek-loader {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 50px;
}

.deepseek-loader:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 0;
    box-sizing: border-box;
    border: 25px solid var(--deepseek-primary);
    border-color: var(--deepseek-primary) transparent var(--deepseek-primary) transparent;
    animation: deepseek-loader 1.2s infinite;
}

@keyframes deepseek-loader {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
        transform: rotate(180deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 开关按钮 */
.deepseek-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.deepseek-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.deepseek-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.deepseek-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.deepseek-switch input:checked + .deepseek-switch-slider {
    background-color: var(--deepseek-primary);
}

.deepseek-switch input:focus + .deepseek-switch-slider {
    box-shadow: 0 0 1px var(--deepseek-primary);
}

.deepseek-switch input:checked + .deepseek-switch-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* 暗色模式支持 */
.dark-mode {
    --deepseek-bg: #1a2233;
    --deepseek-card-bg: #283347;
    --deepseek-text: #e2e8f0;
    --deepseek-text-secondary: #a0aec0;
    --deepseek-border: #3a4a5e;
}

/* 响应式适配 */
@media (max-width: 991.98px) {
    .deepseek-sidebar {
        transform: translateX(-100%);
    }
    
    .deepseek-sidebar.show {
        transform: translateX(0);
    }
    
    .deepseek-main {
        margin-left: 0;
    }
}

/* 文件库页面样式 */
.file-item {
    position: relative;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--bs-light);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.dark-mode .file-item {
    background-color: var(--bs-dark);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.file-item .file-icon {
    text-align: center;
    margin-bottom: 0.5rem;
}

.file-item .file-info {
    text-align: center;
}

.file-item .file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-meta {
    color: var(--bs-gray-600);
    font-size: 0.875rem;
}

.dark-mode .file-item .file-meta {
    color: var(--bs-gray-400);
}

.file-item.folder .file-icon {
    color: var(--bs-warning);
}

.list-item {
    transition: background-color 0.3s ease;
}

.list-item:hover {
    background-color: var(--bs-light);
}

.dark-mode .list-item:hover {
    background-color: var(--bs-dark);
}

.upload-area {
    border: 2px dashed var(--bs-gray-400);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.upload-area.dragover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.upload-item {
    background-color: var(--bs-light);
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.dark-mode .upload-item {
    background-color: var(--bs-dark);
}

.storage-info {
    background-color: var(--bs-light);
    border-radius: 0.5rem;
}

.dark-mode .storage-info {
    background-color: var(--bs-dark);
}

.storage-info .progress {
    height: 0.5rem;
    background-color: var(--bs-gray-200);
}

.dark-mode .storage-info .progress {
    background-color: var(--bs-gray-700);
}

.storage-info .progress-bar {
    background-color: var(--bs-primary);
}

/* Toast样式 */
.toast-container {
    z-index: 1050;
}

.toast {
    opacity: 0.9;
}

/* 预览模态框样式 */
.preview-container {
    min-height: 200px;
    max-height: 600px;
    overflow: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        width: 100%;
    }
    
    .file-actions {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* 表格组件 - 现代化设计 */
.deepseek-table-wrapper {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.deepseek-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--deepseek-text);
}

.deepseek-table th {
    background-color: rgba(58, 109, 240, 0.03);
    color: var(--deepseek-text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 1rem 1.25rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.deepseek-table td {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--deepseek-border);
    vertical-align: middle;
}

.deepseek-table tbody tr {
    transition: all 0.2s ease;
}

.deepseek-table tbody tr:hover {
    background-color: rgba(58, 109, 240, 0.03);
}

.deepseek-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格变体 */
.deepseek-table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}

.deepseek-table-striped tbody tr:hover {
    background-color: rgba(58, 109, 240, 0.05);
}

/* 紧凑表格 */
.deepseek-table-sm th,
.deepseek-table-sm td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* 带边框表格 */
.deepseek-table-bordered th,
.deepseek-table-bordered td {
    border: 1px solid var(--deepseek-border);
}

/* 响应式表格 */
.deepseek-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格排序图标 */
.deepseek-table-sort {
    cursor: pointer;
    position: relative;
}

.deepseek-table-sort:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid var(--deepseek-text-secondary);
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
    opacity: 0.5;
}

.deepseek-table-sort.asc:after {
    border-top: 0;
    border-bottom: 4px solid var(--deepseek-primary);
    opacity: 1;
}

.deepseek-table-sort.desc:after {
    border-top: 4px solid var(--deepseek-primary);
    opacity: 1;
}

/* 表格操作列 */
.deepseek-table .actions-cell {
    text-align: right;
    width: 140px;
    white-space: nowrap;
}

.deepseek-table .actions-cell .deepseek-btn-icon {
    width: 32px;
    height: 32px;
    margin-left: 0.25rem;
}

/* 表格状态指示器 */
.deepseek-table .status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.deepseek-table .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.deepseek-table .status-active {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.deepseek-table .status-active .status-dot {
    background-color: #2ecc71;
}

.deepseek-table .status-pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.deepseek-table .status-pending .status-dot {
    background-color: #f39c12;
}

.deepseek-table .status-inactive {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.deepseek-table .status-inactive .status-dot {
    background-color: #e74c3c;
}

/* 表格分页 */
.deepseek-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: white;
    border-top: 1px solid var(--deepseek-border);
}

.deepseek-pagination-info {
    color: var(--deepseek-text-secondary);
    font-size: 0.875rem;
}

.deepseek-pagination-actions {
    display: flex;
    gap: 0.25rem;
}

.deepseek-pagination-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid var(--deepseek-border);
    color: var(--deepseek-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deepseek-pagination-button:hover {
    background-color: rgba(58, 109, 240, 0.05);
    border-color: var(--deepseek-primary);
    color: var(--deepseek-primary);
}

.deepseek-pagination-button.active {
    background-color: var(--deepseek-primary);
    border-color: var(--deepseek-primary);
    color: white;
}

.deepseek-pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.deepseek-pagination-button.disabled:hover {
    background-color: transparent;
    border-color: var(--deepseek-border);
    color: var(--deepseek-text);
}

/* 导航栏样式 */
.nav-link {
    color: #fff !important;
}

.nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* 确保侧边栏文字颜色 */
.bg-dark .nav-link {
    color: #fff !important;
}

.bg-dark .d-sm-inline {
    color: #fff !important;
}

/* 确保下拉菜单项文字也是白色 */
.bg-dark .dropdown-toggle {
    color: #fff !important;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .theme-toggle {
    background-color: #2d3748;
    color: white;
}

/* 页面头部样式 */
.deepseek-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--deepseek-border);
}

.deepseek-page-header h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* 头像样式 */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
}

/* 适应深色模式的表单元素 */
.dark-mode .form-control,
.dark-mode .form-select {
    background-color: var(--deepseek-gray-100);
    border-color: var(--deepseek-gray-300);
    color: var(--deepseek-gray-800);
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: var(--deepseek-gray-100);
    border-color: var(--deepseek-primary);
    color: var(--deepseek-gray-800);
}

/* 搜索结果页面样式 */
.search-results {
    min-height: 200px;
}

/* 数据分析页面样式 */
.chart-container {
    height: 300px;
    margin-bottom: 1.5rem;
}

/* 修复深色模式中Bootstrap组件的颜色 */
.dark-mode .btn-close {
    filter: invert(1);
}

.dark-mode .modal-content {
    background-color: var(--deepseek-card-bg);
    color: var(--deepseek-text);
}

.dark-mode .dropdown-menu {
    background-color: var(--deepseek-card-bg);
    border-color: var(--deepseek-border);
}

.dark-mode .dropdown-item {
    color: var(--deepseek-text);
}

.dark-mode .dropdown-item:hover {
    background-color: var(--deepseek-gray-200);
    color: var(--deepseek-text);
}

.dark-mode .list-group-item {
    background-color: var(--deepseek-card-bg);
    color: var(--deepseek-text);
    border-color: var(--deepseek-border);
}

.dark-mode .list-group-item-action:hover {
    background-color: var(--deepseek-gray-200);
}

.dark-mode .alert {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .table {
    color: var(--deepseek-text);
}

.dark-mode .table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 跨浏览器兼容性调整 */
@supports (-webkit-overflow-scrolling: touch) {
    /* iOS设备特定样式 */
    .deepseek-main {
        -webkit-overflow-scrolling: touch;
    }
}

@supports (-ms-ime-align: auto) {
    /* Edge浏览器特定样式 */
    .deepseek-sidebar {
        overflow-y: auto;
    }
}

/* 修复Firefox中的一些问题 */
@-moz-document url-prefix() {
    .deepseek-table {
        width: 100%;
    }
}

/* ====================== 首页优化样式 ====================== */
/* 顶部摘要卡片 */
.home-highlight-card {
    background: linear-gradient(135deg, var(--deepseek-primary) 0%, var(--deepseek-primary-dark) 100%);
    border: none;
    border-radius: var(--deepseek-border-radius-lg);
    box-shadow: 0 15px 35px rgba(58, 109, 240, 0.18);
    overflow: hidden;
    position: relative;
}

.home-highlight-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.4;
    z-index: 1;
}

.home-highlight-card .row {
    position: relative;
    z-index: 2;
}

.home-highlight-image {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* 统计卡片 */
.deepseek-stat-card.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deepseek-stat-card.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--deepseek-shadow-md);
}

.deepseek-stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--deepseek-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 特性快捷方式 */
.feature-shortcut {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-shortcut:hover {
    background-color: var(--deepseek-gray-100);
    border-color: var(--deepseek-border);
    transform: translateY(-3px);
}

.feature-shortcut .icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.feature-shortcut:hover .icon-wrapper {
    transform: scale(1.1);
}

.hover-primary-light:hover {
    background-color: rgba(58, 109, 240, 0.05);
}

/* 活动时间线 */
.activity-timeline {
    position: relative;
}

.activity-item {
    position: relative;
    padding: 1rem 0;
    padding-left: 30px;
    border-bottom: 1px solid var(--deepseek-border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    position: absolute;
    left: 0;
    top: 1.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(58, 109, 240, 0.1);
}

.activity-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--deepseek-border);
    z-index: 1;
}

/* 公告项目 */
.announcement-item {
    display: flex;
    gap: 1rem;
}

.announcement-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.announcement-content {
    flex: 1;
}

.announcement-content h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 通用卡片悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--deepseek-shadow-md);
}

/* Bootstrap 扩展类 */
.bg-primary-subtle {
    background-color: rgba(58, 109, 240, 0.1);
}

.bg-success-subtle {
    background-color: rgba(42, 198, 112, 0.1);
}

.bg-warning-subtle {
    background-color: rgba(255, 173, 73, 0.1);
}

.bg-info-subtle {
    background-color: rgba(91, 152, 210, 0.1);
}

.bg-danger-subtle {
    background-color: rgba(242, 100, 100, 0.1);
}

.text-primary {
    color: var(--deepseek-primary) !important;
}

.text-success {
    color: var(--deepseek-success) !important;
}

.text-warning {
    color: var(--deepseek-warning) !important;
}

.text-info {
    color: var(--deepseek-info) !important;
}

.text-danger {
    color: var(--deepseek-danger) !important;
}

/* 深色模式适配 */
.dark-mode .home-highlight-card {
    background: linear-gradient(135deg, var(--deepseek-primary) 0%, #2b3e6a 100%);
}

.dark-mode .bg-primary-subtle {
    background-color: rgba(93, 135, 255, 0.15);
}

.dark-mode .bg-success-subtle {
    background-color: rgba(42, 198, 112, 0.15);
}

.dark-mode .bg-warning-subtle {
    background-color: rgba(255, 173, 73, 0.15);
}

.dark-mode .bg-info-subtle {
    background-color: rgba(91, 152, 210, 0.15);
}

.dark-mode .bg-danger-subtle {
    background-color: rgba(242, 100, 100, 0.15);
}

.dark-mode .feature-shortcut:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--deepseek-border);
}

.dark-mode .hover-primary-light:hover {
    background-color: rgba(93, 135, 255, 0.1);
}

.dark-mode .activity-timeline::before {
    background-color: var(--deepseek-border);
}

/* 响应式设计调整 */
@media (max-width: 991.98px) {
    .home-highlight-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .activity-item {
        padding-left: 25px;
    }
    
    .activity-dot {
        width: 10px;
        height: 10px;
        top: 1.5rem;
    }
    
    .activity-timeline::before {
        left: 4px;
    }
}

@media (max-width: 575.98px) {
    .announcement-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .announcement-badge {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
} 